package com.cloud.converter;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.cloud.model.entity.Payment;
import com.cloud.model.vo.PaymentPageVO;
import com.cloud.model.PaymentForm;
import com.cloud.model.bo.PaymentBO;

/**
 * 支付表转换器
 *
 * @author Sailer Wen
 * @since 2024-07-24
 */
@Mapper(componentModel = "spring")
public interface PaymentConverter{

    PaymentPageVO bo2PageVo(PaymentBO bo);

    Page<PaymentPageVO> bo2PageVo(Page<PaymentBO> bo);

    PaymentForm entity2Form(Payment entity);

    @InheritInverseConfiguration(name = "entity2Form")
    Payment form2Entity(PaymentForm entity);
}